 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>测试1，2（js正则函数运用）</title>
  <meta charset='UTF-8'/>
  <script type="text/javascript" src="jquery/jquery-1.11.1.min.js"></script>
  <script type="text/javascript">
	  $(function(){
	  	
		$('button').click(function(){
			
			var str = 'event=&operator=17&max=50&sort=remark&order=asc';
			
			var reg = /^(^\w)/;
			
			
		
			console.log(str.match(reg));
		
		
		});
		
	  });
	  
  </script>
  <style type="text/css"> 
  
  </style>
 </head>
 <body>
 	<button>验证</button>
 </body>
</html>
